import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { Test1Component } from './test1.component';
import { Test1AComponent } from './test1-a/test1-a.component';
import { Test1BComponent } from './test1-b/test1-b.component';
import { Test1CComponent } from './test1-c/test1-c.component';
import { from } from 'rxjs';


const routes: Routes = [
  { path: 'test1', component: Test1Component, children: [
    // { path: '', component: Test1AComponent },
    { path: 'childa', component: Test1AComponent },
    { path: 'childb', component: Test1BComponent },
    { path: 'childc', component: Test1CComponent },
  ] },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class Test1RoutingModule { }
